/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

.markdown-container {
  font-family: var(
    --markdown-font-family,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe WPC',
    'Segoe UI',
    system-ui,
    'Ubuntu',
    'Droid Sans',
    sans-serif
  );
  font-size: var(--markdown-font-size, 14px);
  padding: 0 26px;
  line-height: var(--markdown-line-height, 22px);
  word-wrap: break-word;
}

.markdown-container {
  padding-top: 1em;
}

.markdown-container h1,
.markdown-container h2,
.markdown-container h3,
.markdown-container h4,
.markdown-container h5,
.markdown-container h6 {
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 16px;
  line-height: 1.25;
}

/* Prevent `sub` and `sup` elements from affecting line height */
.markdown-container sub,
.markdown-container sup {
  line-height: 0;
}

.markdown-container ul ul:first-child,
.markdown-container ul ol:first-child,
.markdown-container ol ul:first-child,
.markdown-container ol ol:first-child {
  margin-bottom: 0;
}

.markdown-container img,
.markdown-container video {
  max-width: 100%;
  max-height: 100%;
}

.markdown-container a {
  text-decoration: none;
}

.markdown-container a:hover {
  text-decoration: underline;
}

.markdown-container a:focus,
.markdown-container input:focus,
.markdown-container select:focus,
.markdown-container textarea:focus {
  outline: 1px solid -webkit-focus-ring-color;
  outline-offset: -1px;
}

.markdown-container p {
  margin-bottom: 16px;
}

.markdown-container li p {
  margin-bottom: 0.7em;
}

.markdown-container ul,
.markdown-container ol {
  margin-bottom: 0.7em;
  margin-left: 1em;
  list-style-position: inside;
}

.markdown-container ul {
  list-style: disc;
}

.markdown-container ol {
  list-style: decimal;
}

.markdown-container hr {
  border: 0;
  height: 1px;
  border-bottom: 1px solid;
}

.markdown-container h1 {
  font-size: 2em;
  margin-top: 0;
  padding-bottom: 0.3em;
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

.markdown-container h2 {
  font-size: 1.5em;
  padding-bottom: 0.3em;
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

.markdown-container h3 {
  font-size: 1.25em;
}

.markdown-container h4 {
  font-size: 1em;
}

.markdown-container h5 {
  font-size: 0.875em;
}

.markdown-container h6 {
  font-size: 0.85em;
}

.markdown-container table {
  border-collapse: collapse;
  margin-bottom: 0.7em;
}

.markdown-container th {
  text-align: left;
  border-bottom: 1px solid;
}

.markdown-container th,
.markdown-container td {
  padding: 5px 10px;
}

.markdown-container table > tbody > tr + tr > td {
  border-top: 1px solid;
}

.markdown-container blockquote {
  margin: 0;
  padding: 0px 16px 0 10px;
  border-left-width: 5px;
  border-left-style: solid;
  border-radius: 2px;
}

.markdown-container code {
  font-family: var(
    --vscode-editor-font-family,
    'SF Mono',
    Monaco,
    Menlo,
    Consolas,
    'Ubuntu Mono',
    'Liberation Mono',
    'DejaVu Sans Mono',
    'Courier New',
    monospace
  );
  font-size: 1em;
  line-height: 1.357em;
}

.markdown-container body.wordWrap pre {
  white-space: pre-wrap;
}

.markdown-container pre:not(.hljs),
.markdown-container pre.hljs code > div {
  padding: 16px;
  border-radius: 3px;
  overflow: auto;
}

.markdown-container pre code {
  display: inline-block;
  color: var(--vscode-editor-foreground);
  tab-size: 4;
  background: none;
}

/** Theming */

.markdown-container pre {
  background-color: var(--vscode-textCodeBlock-background);
  border: 1px solid var(--vscode-widget-border);
}

.markdown-container h3 {
  padding-left: 1em;
  display: flex;
  align-items: center;
}
.markdown-container h3::before {
  color: rgb(0, 151, 252);
  width: 0.8em;
  height: 1em;
  content: '➶';
  display: inline-block;
  margin-left: -1em;
  margin-right: 0.2em;
}
